//
//  CTMediator+TestA.m
//  TestA
//
//  Created by casa on 2020/3/9.
//  Copyright © 2020 casa. All rights reserved.
//

#import "CTMediator+TestA.h"

@implementation CTMediator (TestA)

- (UIViewController *)TestA_Category_Objc_ViewControllerWithCallback:(void(^)(NSString *result))callback
{
    NSMutableDictionary *params = [[NSMutableDictionary alloc] init];
    params[@"callback"] = callback;
    return [self performTarget:@"TestA" action:@"Category_ViewController" params:params shouldCacheTarget:NO];
}

- (UIViewController *)TestA_Category_Swift_ViewCongrollerWithCallback:(void(^)(NSString *result))callback
{
    NSMutableDictionary *params = [[NSMutableDictionary alloc] init];
    params[@"callback"] = callback;
    params[kCTMediatorParamsKeySwiftTargetModuleName] = @"TestA_swift";
    return [self performTarget:@"TestA" action:@"Category_ViewController" params:params shouldCacheTarget:NO];
}

- (NSString *)TestA_test
{
    NSString *result = (NSString *)[self performTarget:@"TestA" action:@"test" params:nil shouldCacheTarget:NO];
    return result;
}

@end
